/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.user.entity.FinanceRecord;
import com.pig4cloud.pigx.user.entity.TransferDetailed;
import com.pig4cloud.pigx.user.vo.SaveFinanceDTO;
import com.pig4cloud.pigx.user.vo.UnassignedFinanceVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * 财务记录
 *
 * @author pigx code generator
 * @date 2023-02-02 16:58:30
 */
public interface FinanceRecordService extends IService<FinanceRecord> {

	R<String> save(SaveFinanceDTO dto);

	/**
	 * 获取未分配的燃料包
	 * @param transferType 燃料购买类型
	 * @param financeType 分配类型 （保险金 平台 市场）
	 * @return r
	 */
	R<List<TransferDetailed>> getUnassigned(String transferType, String financeType);


	/**
	 * 获取总人工充值
	 * @return r
	 */
	R<BigDecimal> getUserRechargeSum();

	/**
	 * 获取用户资金账户总结余
	 * @return r
	 */
	R<BigDecimal> getUserCapitalBalanceSum(String type);

}
